<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if (!$user->isUser())
	goToPage();

switch($route->getAdminPlace())
{
	case "profile": require_once CABINET.DS."_profile".DS.MAIN; break;
	case "news": require_once CABINET.DS."_news".DS.MAIN; break;
	case "messages": require_once CABINET.DS."_messages".DS.MAIN; break;
	
	default: goToPage("/cabinet/profile");
}

?>